<?php


namespace App\factorys;


use App\servers\QniuServer;

class Picture
{
    const Alibaba = 1;
    const qiNiu = 2;

    public static function send($type,$phone)
    {
        switch ($type){
            case self::Alibaba : $note = new DxbSmsServer(); break;
            case self::qiNiu : $note =new QniuServer(); break;
            default : return null;
        }
        return $note->Upload($phone,true);
    }
}
